package com.frank.oj.service.admin.account;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.frank.oj.common.result.CommonResult;
import com.frank.oj.model.dto.LoginDTO;
import com.frank.oj.model.vo.UserInfoVO;

import java.util.HashMap;
import java.util.List;

/**
 * @author frank
 * @Date 2024/3/27
 */
public interface AdminAccountService {
    CommonResult<UserInfoVO> login(LoginDTO loginDto);

    CommonResult<Void> logout();

    IPage<HashMap<String, Object>> getUserSystemLogs(Integer currentPage, Integer limit, String userName, String nickName);

    void forcedOffline(String userName);
}
